home *** CD-ROM | disk | FTP | other *** search
- global oldlinea, gLineaSel, gNomeFileSel, gIDSel, gLinea, gNomeFile
-
- on mouseEnter me
- oldlinea = 0
- end
-
- on mouseWithin me
- newlinea = the mouseLine
- tmp = the member of sprite the currentSpriteNum
- nome = member(tmp).name
- cursor(280)
- if newlinea <> oldlinea then
- if (oldlinea <> gLineaSel) and (oldlinea <> 0) then
- set the foreColor of line oldlinea of field tmp to 255
- end if
- if nome = "collezioniTXT" then
- the itemDelimiter = "#"
- titolo = line newlinea of field "collezioniTXT"
- repeat with i = 1 to the number of lines in field "titolo#nomefile"
- linea2 = line i of field "titolo#nomefile"
- gNomeFileSel = item 1 of linea2
- if gNomeFileSel = titolo then
- gNomeFileSel = item 2 of linea2
- gIDSel = item 3 of linea2
- gIDSel = integer(gIDSel)
- set the member of sprite 18 to member(gNomeFileSel)
- updateStage()
- exit repeat
- end if
- end repeat
- end if
- if the foreColor of line newlinea of field tmp <> 6 then
- set the foreColor of line newlinea of field tmp to 3
- end if
- oldlinea = newlinea
- end if
- end
-
- on mouseLeave me
- oldlinea = 0
- set the member of sprite 18 to member("dummyquadro")
- cursor(-1)
- newlinea = the mouseLine
- tmp = the member of sprite the currentSpriteNum
- nome = member(tmp).name
- if gLineaSel > 1 then
- set the foreColor of line 1 to gLineaSel - 1 of field tmp to 255
- set the foreColor of line gLineaSel + 1 to the number of lines in field tmp of field tmp to 255
- else
- if gLineaSel = 1 then
- set the foreColor of line gLineaSel + 1 to the number of lines in field tmp of field tmp to 255
- else
- if gLineaSel = 0 then
- set the foreColor of field tmp to 255
- end if
- end if
- end if
- if nome = "collezioniTXT" then
- if gLineaSel <> 0 then
- gNomeFileSel = gNomeFile
- set the member of sprite 18 to gNomeFileSel
- end if
- end if
- end
-
- on mouseDown me
- newlinea = the mouseLine
- tmp = the member of sprite the currentSpriteNum
- nome = member(tmp).name
- if (gLineaSel <> 0) and (gLineaSel <> the mouseLine) then
- set the foreColor of line gLineaSel of field tmp to 255
- end if
- gLinea = the mouseLine
- set the foreColor of line gLinea of field tmp to 19
- end
-